package com.rui.shangXueTang.linked;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : Boy
 * @createTime : [2022/2/14 15:18]
 * @description : [单项环形链表节点之约瑟夫问题]
 */

@SuppressWarnings("all")
public class Boy {

    //节点编号
    private int no;

    //下一个节点
    private Boy next;

    public Boy() {
    }

    public Boy(int no) {
        this.no = no;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public Boy getNext() {
        return next;
    }

    public void setNext(Boy next) {
        this.next = next;
    }
}
